package com.naiterui.ehp.bs.b2c.order.fegin;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "b2cPh", url = "${ehp.domain.pharmacist}", configuration = FeignConfiguration.class)
public interface IPharmacistFeignClient {

    /**
     * 调配药师签署
     * @param recomId 处方ID
     * @throws BusinessException /
     */
    @Async
    @PostMapping("inner/recommend/allocate/audit")
    void allocateAudit(@RequestParam("recomId") Long recomId);

}
